package org.example.POJO.online;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.example.POJO.game.Chess;

import java.awt.*;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Record implements Serializable {
    //操作的棋子类
    private Chess chess;
    //起点坐标
    private Point start;
    //终点坐标
    private Point end;
    //被吃掉的棋子
    private Chess eaten;

    @Override
    public String toString() {
        return "Record{" +
                "chess=" + chess +
                ", start=" + start +
                ", end=" + end +
                ", eaten=" + eaten +
                '}';
    }
}
